<?php
	global $wpdb;
    $prefix = $wpdb->prefix;
    $meta_boxes = array();
    // First Meta_box
    
    ##===========================================================================================
     $meta_boxes[] = array(
        'title'     =>  'Addition summary infomation',
        'id'        =>  'addition_slideshow',
        'pages'     =>  array('slide-show'),
        'context'   =>  'normal',
        'priority'  =>  'high',
        'fields'    =>  array(
    		array(            	
                'type'  =>  'text',                       // checkbox
                'id'    =>  $prefix . 'url',
                'name'  =>  '<span style="font-weight: bold;">Link to site</span>',			
                'desc'  =>  'Enter other link to site (Ex: http://)'
            ),
            array(            	
                'type'  =>  'image',                       // checkbox
                'id'    =>  $prefix . 'thumbnail',
                'name'  =>  '<span style="font-weight: bold;">Image thumbnail</span>',			
                'desc'  =>  'Upload Image thumbnail  Size: W-1000xH-400 px'
            ),
    		array(
				'name' => '<span style="font-weight: bold;">Display Image</span>',
				'id' => $prefix . 'display',
				'type' => 'radio',              // File type: radio box
				'options' => array(             // Array of 'key' => 'value' pairs for radio options. Note: the 'key' is stored in meta field, not the 'value'
					'display' => 'Display',
					'hidden' => 'Hidden'
				),
				'std' => 'display',
				'desc' => 'Display or Hidden .'
			)                      
        )
    );
    
    $meta_boxes[] = array(
        'title'     =>  'Addition summary infomation',
        'id'        =>  'addition_service',
        'pages'     =>  array('service'),
        'context'   =>  'normal',
        'priority'  =>  'high',
        'fields'    =>  array(
    		
            array(            	
                'type'  =>  'image',                       // checkbox
                'id'    =>  $prefix . 'thumbnail',
                'name'  =>  '<span style="font-weight: bold;">Image thumbnail</span>',			
                'desc'  =>  'Upload Image thumbnail  Size: 224x159px'
            ),
    		array(
				'name' => '<span style="font-weight: bold;">Display post</span>',
				'id' => $prefix . 'display',
				'type' => 'radio',              // File type: radio box
				'options' => array(             // Array of 'key' => 'value' pairs for radio options. Note: the 'key' is stored in meta field, not the 'value'
					'display' => 'Display',
					'hidden' => 'Hidden'
				),
				'std' => 'display',
				'desc' => 'Display or Hidden .'
			)                      
        )
    );
    
    $meta_boxes[] = array(
        'title'     =>  'Addition summary infomation',
        'id'        =>  'addition_service',
        'pages'     =>  array('page'),
        'context'   =>  'normal',
        'priority'  =>  'high',
        'fields'    =>  array(
    		
            array(            	
                'type'  =>  'image',                       // checkbox
                'id'    =>  $prefix . 'thumbnail',
                'name'  =>  '<span style="font-weight: bold;">Photo for page</span>',			
                'desc'  =>  'Upload 3 to 4 Photo for page  Size: 237x175px'
            )                      
        )
    );
    
     $meta_boxes[] = array(
        'title'     =>  'Addition summary infomation',
        'id'        =>  'addition_news_vent',
        'pages'     =>  array('news-event'),
        'context'   =>  'normal',
        'priority'  =>  'high',
        'fields'    =>  array(
    		
            array(            	
                'type'  =>  'image',                       // checkbox
                'id'    =>  $prefix . 'thumbnail',
                'name'  =>  '<span style="font-weight: bold;">Image thumbnail</span>',			
                'desc'  =>  'Upload Image thumbnail  Size: 135x85px'
            ),
    		array(
				'name' => '<span style="font-weight: bold;">Display post</span>',
				'id' => $prefix . 'display',
				'type' => 'radio',              // File type: radio box
				'options' => array(             // Array of 'key' => 'value' pairs for radio options. Note: the 'key' is stored in meta field, not the 'value'
					'display' => 'Display',
					'hidden' => 'Hidden'
				),
				'std' => 'display',
				'desc' => 'Display or Hidden .'
			)                      
        )
    );
    
    ##===========================================================================================
    
     $meta_boxes[] = array(
        'title'     =>  'Add summary infomation',
        'id'        =>  'addition_tour',
        'pages'     =>  array('post'),
        'context'   =>  'normal',
        'priority'  =>  'high',
        'fields'    =>  array(
    		array(            	
                'type'  =>  'image',                       // checkbox
                'id'    =>  $prefix . 'thumbnail',
                'name'  =>  '<span style="font-weight: bold;">Upload image thumbnail</span>',			
                'desc'  =>  'Upload image thumbnail Size: 101x73px'
            ),  
            array(            	
                'type'  =>  'image',                       // checkbox
                'id'    =>  $prefix . 'photo',
                'name'  =>  '<span style="font-weight: bold;">Upload Tour Photos</span>',			
                'desc'  =>  'Upload image Tour photos: 251x151px'
            ),   
            array(            	
                'type'  =>  'text',                       // checkbox
                'id'    =>  $prefix . 'price',
                'name'  =>  '<span style="font-weight: bold;">Upload Tour Price</span>',			
                'desc'  =>  'Enter Price of Tour',
                'std'	=> 0
            ),        
            array(
				'name' => '<span style="font-weight: bold;">Destination From </span>',
				'id' => $prefix . 'destination_from',
				'type' => 'select',             // File type: select box
				'options' => db_get_destination_from(),
				'multiple' => true,             // Select multiple values, optional. Default is false.
				'std' => array( 'vn' ),         // Default value, can be string (single value) or array (for both single and multiple values)
				'desc' => 'Select the current Destination From'
			),
            array(
				'name' => '<span style="font-weight: bold;">Destination To </span>',
				'id' => $prefix . 'destination_to',
				'type' => 'select',             // File type: select box
				'options' => db_get_destination_from(),
				'multiple' => true,             // Select multiple values, optional. Default is false.
				'std' => array( 'vn' ),         // Default value, can be string (single value) or array (for both single and multiple values)
				'desc' => 'Select the current Destination To'
			),
             
            array(            	
                'type'  =>  'text',                       // checkbox
                'id'    =>  $prefix . 'lenght_of_stay',
                'name'  =>  '<span style="font-weight: bold;">Lenght of Stay</span>',			
                'desc'  =>  'Lenght of Stay'
            ),            			
    		array(
				'name' => '<span style="font-weight: bold;">Display</span>',
				'id' => $prefix . 'display',
				'type' => 'radio',              // File type: radio box
				'options' => array(             // Array of 'key' => 'value' pairs for radio options. Note: the 'key' is stored in meta field, not the 'value'
					'display' => 'Display',
					'hidden' => 'Hidden'
				),
				'std' => 'display',
				'desc' => 'Display / Hidden.'
			),			
			array(
				'name' => '<span style="font-weight: bold;">Terms & Conditions</span>',
				'id' => $prefix . 'terms_condition',
				'type' => 'wysiwyg',             // Field type: WYSIWYG editor				
				'desc' => 'Enter Terms & Conditions',
			)			                      
        )
    );
    
    
    
     $meta_boxes[] = array(
        'title'     =>  'Add summary infomation',
        'id'        =>  'addition_hotel',
        'pages'     =>  array('hotel'),
        'context'   =>  'normal',
        'priority'  =>  'high',
        'fields'    =>  array(
    		array(            	
                'type'  =>  'image',                       // checkbox
                'id'    =>  $prefix . 'thumbnail',
                'name'  =>  '<span style="font-weight: bold;">Upload image thumbnail</span>',			
                'desc'  =>  'Upload image thumbnail Size: W: 251 H:151 px'
            ),            
            array(            	
                'type'  =>  'image',                       // checkbox
                'id'    =>  $prefix . 'photo',
                'name'  =>  '<span style="font-weight: bold;">Upload more photo fore Hotel </span>',			
                'desc'  =>  'Upload more image fore Hotel Size: W: 251 H:151 px'
            ),
            array(            	
                'type'  =>  'text',                       // checkbox
                'id'    =>  $prefix . 'price',
                'name'  =>  '<span style="font-weight: bold;">Hotel Price</span>',			
                'desc'  =>  'Enter Hotel Price'
            ),
            array(            	
                'type'  =>  'text',                       // checkbox
                'id'    =>  $prefix . 'address',
                'name'  =>  '<span style="font-weight: bold;">Address</span>',			
                'desc'  =>  'Enter Address'
            ),          
            array(
				'name' => '<span style="font-weight: bold;">Rating</span>',
				'id' => $prefix . 'rating',
				'type' => 'radio',              // File type: radio box
				'options' => array(             // Array of 'key' => 'value' pairs for radio options. Note: the 'key' is stored in meta field, not the 'value'
					'1' => '1 Star',
					'2' => '2 Star',
            		'3' => '3 Star',
            		'4' => '4 Star',
            		'5' => '5 Star'
				),
				'std' => '2',
				'desc' => 'Choosen current Star'
			),
			array(
				'name' => 'Terms Conditions',
				'id' => $prefix . 'terms_condition',
				'type' => 'wysiwyg',             // Field type: WYSIWYG editor				
				'desc' => 'Enter Terms Conditions',
			),			           			
    		array(
				'name' => '<span style="font-weight: bold;">Display</span>',
				'id' => $prefix . 'display',
				'type' => 'radio',              // File type: radio box
				'options' => array(             // Array of 'key' => 'value' pairs for radio options. Note: the 'key' is stored in meta field, not the 'value'
					'display' => 'Display',
					'hidden' => 'Hidden'
				),
				'std' => 'display',
				'desc' => 'Display / Hidden.'
			)			                     
        )
    );
    
   /*
	## ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    foreach ($meta_boxes as $meta_box) {
    	new RW_Meta_Box_Taxonomy($meta_box);
    }
    */
?>